package com.tianqu.tms.dao;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.AttnDto;

/**
 * 经办人Dao
 * 
 * @author Administrator
 *
 */
public interface AttnDao {

	public List<AttnDto> getAttnInfo() throws TmsDaoException;
	public AttnDto getAttnInfoById(String attnId)throws TmsDaoException;
	
	/**
	 * 经办人信息插入
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void insertAttn(AttnDto dto)throws TmsDaoException;
	
	/**
	 * 经办人修改
	 * @param dto
	 * @throws TmsDaoException
	 */
	public void updateAttn(AttnDto dto)throws TmsDaoException;
	
	public void updateAttnMarginInfo(AttnDto dto) throws TmsDaoException;
	public void updateAttnVirtualMargin(int transferPrice, String attnId) throws TmsDaoException;
	/**
	 * 积分管理
	 */
	public AttnDto getIntegralInfo(String accessCardNo)throws TmsDaoException;
	
	public void updateIntegralCardScore(AttnDto dto)throws TmsDaoException;
	
	/**
	 * 查看是否有相同的积分卡卡号
	 * @param accessCardNo
	 * @return
	 * @throws TmsDaoException
	 */
	public int findAttnByAccessCardNo(String accessCardNo)throws TmsDaoException;
	
	public AttnDto getIntegralManagementInfo(String accId) throws TmsDaoException;
	/**
	 * 判断是否有相同的积分卡编号
	 * @param accessCardId
	 * @return
	 * @throws TmsDaoException
	 */
	public int findAttnByAccessCardId(String accessCardId)throws TmsDaoException;
	
	public List<AttnDto> findAttnList()throws TmsDaoException;
	
	public List<AttnDto> findAllAttn()throws TmsDaoException;
	
	public AttnDto findAttnByAttnId(String attnId)throws TmsDaoException;
	
	public AttnDto findAttnByUserId(String userId)throws TmsDaoException;
	
	public void updateIntegralcard(AttnDto dto)throws TmsDaoException;
	
	public void updateMarginInfoByAccessCardNo(AttnDto dto)throws TmsDaoException;
	
	public List<AttnDto> findAttnList(String memberId) throws TmsDaoException;
}